<?php

namespace App\Events;

class RoomRegisterEvent extends Event
{
    /**
     * Create a new event instance.
     *
     * @return void
     */
    public $data;
    
    public $opType;//1:register
    
    public function __construct($data,$opType = 1)
    {
        $this->data = $data;
        $this->opType = $opType;
    }
    
    public function getData()
    {
        return $this->data;
    }
    public function getType()
    {
        return $this->opType;
    }
}
